import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 导入mint-ui
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
// 导入mui
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'
import mui from './lib/mui/js/mui.min.js'
import VuePreview from 'vue-preview'

// 导入时间格式化插件
import moment from 'moment'
// 导入axios
import axios from 'axios'
Vue.prototype.mui = mui
Vue.prototype.$axios = axios
// 全局配置axios公共的请求头URL
axios.defaults.baseURL = 'http://www.liulongbin.top:3005/'
// 安装图片预览插件
Vue.use(VuePreview)
// 定义全局过滤器  时间
Vue.filter('dateFormat', function (datastr, pattern = 'YYYY-MM-DD HH:mm:ss') {
  return moment(datastr).format(pattern)
})

Vue.use(Mint)
Vue.config.productionTip = false
Vue.config.devtools = true
// Vue.config.useEslint = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
